<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Gold Bach Conjecturer</title>
  <script>
  function glAvg(scores){
  
  var avg = parseInt(scores.reduce( ( p, c ) => p + c, 0 ) / scores.length);
  var count = 0;
  for (var i = 0; i < 10; i++)
  {
    if (scores[i] > avg)
        count++;
  }
  return count;
}
var scores = [90,80,60,45,68,36,89,76,56,91];
console.log(glAvg(scores));
  </script>
</head>
<body>
  
</body>
</html>